﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.YJPay.Response
{
    [Serializable]
    public class AResponse : AService
    {
        /// <summary>
        /// 签名类型
        /// </summary>
        public static string sign_type_Key = "signType";

        /// <summary>
        /// 签名键
        /// </summary>
        public static string sign_Key = "sign";

        protected Dictionary<string, string> UrlDic(string payParams)
        {
            var dic = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
            if (string.IsNullOrEmpty(payParams))
                return new Dictionary<string, string>();
            dic = JsonConvert.DeserializeObject<Dictionary<string, string>>(payParams);
            return dic;
        }

    }
}
